{% if stats %}
<div class="my-article">
{% for stat in stats %}
     <b>{{stat.date}}</b> :   {{stat.count}}<br/>
 {% endfor %}   
</div> 
{% endif %}

{% for article in articles %}

{% ifequal forloop.counter0 1 %}
 {% include "adv_text.html" %}
{% endifequal %}

{% ifequal forloop.counter0 2 %}
 {% include "adv_text.html" %}
{% endifequal %}



<div class="my-article">
<h2>
{% ifequal lang "eng" %}
<a href="/article/{{article.key.id}}/{{lang}}">{{article.title_eng}}</a></h2>
{% else %}
<a href="/article/{{article.key.id}}">{{article.title}}</a></h2>
{% endifequal %}
{% ifequal lang "eng" %}
{{article.content_eng}}
{% else %}
{{article.content}}
{% endifequal %}
<div class="date">

<div class="my-comments" style="width:40px;">
<a STYLE="text-decoration:none" href="/article/{{article.key.id}}/{{lang}}"><span class="image_count">{{article.commentmodel_set.count}}</span></a>
</div>

<div class="my-comments"  >
{% for comment in article.commentmodel_set|slice:":2" %}
<b><a STYLE="text-decoration:none" href="/article/{{article.key.id}}/{{lang}}">@{{comment.name}}</b>
{% ifequal lang "eng" %}
		{{comment.comment_eng|slice:":50"}} ...
	{% else %}
		{{comment.comment|slice:":50"}} ...
{% endifequal %}
</a><br/>
{% endfor %}
</div>
<div>
<b>Теги</b>: {{article.keywords}}<br/>
{% if user %}
<a href="/edit?uuid={{article.key.id}}">edit</a>
{% endif %}

<img src="/images/timeicon.gif" alt="" />{{article.date|date:"d-M-Y H:m"}} 
</div>    
</div>
</div>
{% endfor %}
	
<div>
	
{% ifequal lang "eng" %}
		<div style="text-align:left;float:left;"><a href="/{{category}}/eng/{{index}}"><<<</a> </div>
		<div style="text-align:right;float:rigth;"><a href="/{{category}}/eng/{{index1}}">>>></a> </div>
	{% else %}
		<div style="text-align:left;float:left;"><a href="/{{category}}/rus/{{index}}"><<<</a> </div>
		<div style="text-align:right;float:rigth;"><a href="/{{category}}/rus/{{index1}}">>>></a> </div>
{% endifequal %}
</div>

